package main;

import gameObject.Monster;
import gameObject.MonsterBlackDragon;
import gameObject.MonsterBlinky;
import gameObject.MonsterDragon;
import gameObject.MonsterFlyingRed;
import gameObject.MonsterRed;
import gameObject.MonsterSpiky;
import gameObject.item.ItemBowCrossbow;
import gameObject.item.ItemBowFire;
import gameObject.item.ItemBowGolden;
import gameObject.item.ItemBowLegend;
import gameObject.item.ItemBowWood;
import gameObject.item.ItemEquipment;
import gameObject.item.ItemGunBat;
import gameObject.item.ItemGunToxic;
import gameObject.item.ItemGunTrident;
import gameObject.item.ItemHammerAxe;
import gameObject.item.ItemHammerIron;
import gameObject.item.ItemHammerSpike;
import gameObject.item.ItemSuitArmor;
import gameObject.item.ItemSuitBlackShell;
import gameObject.item.ItemSuitEvilCape;
import gameObject.item.ItemSuitGoldenArmor;
import gameObject.item.ItemSuitGreenShell;
import gameObject.item.ItemSuitLegendArmor;
import gameObject.item.ItemSuitRedCape;
import gameObject.item.ItemSuitRedShell;
import gameObject.item.ItemSuitWhiteCape;
import gameObject.item.ItemSwordBasic;
import gameObject.item.ItemSwordKnife;
import gameObject.item.ItemSwordLegend;
import gameObject.item.ItemSwordLongGolden;
import gameObject.item.ItemSwordPlasma;
import gameObject.item.ItemSwordShortGolden;

public class Factory {
	public static Monster createMonster(int id,int level,int money)
	{
		switch(id)
		{
		case 1:
			return new MonsterSpiky(level,money);
		case 2:
			return new MonsterBlinky(level,money);
		case 3:
			return new MonsterRed(level,money);
		case 4:
			return new MonsterFlyingRed(level,money);
		case 5:
			return new MonsterDragon(level,money);
		case 6:
			return new MonsterBlackDragon(level,money);
		default:
			return null;	
		}
	}
	public static ItemEquipment createItem(int id)
	{
		switch(id)
		{
		case 0:
			return new ItemSwordBasic();
		case 1:
			return new ItemSwordKnife();
		case 2:
			return new ItemSwordShortGolden();
		case 3:
			return new ItemSwordLongGolden();
		case 4:
			return new ItemSwordPlasma();
		case 5:
			return new ItemSwordLegend();
		case 6:
			return new ItemBowWood();
		case 7:
			return new ItemBowCrossbow();
		case 8:
			return new ItemBowGolden();
		case 9:
			return new ItemBowFire();
		case 10:
			return new ItemBowLegend();
		case 11:
			return new ItemSuitArmor();
		case 12:
			return new ItemSuitWhiteCape();
		case 13:
			return new ItemSuitGoldenArmor();
		case 14:
			return new ItemSuitRedCape();
		case 15:
			return new ItemSuitLegendArmor();
		case 16:
			return new ItemHammerIron();
		case 17:
			return new ItemHammerAxe();
		case 18:
			return new ItemHammerSpike();
		case 19:
			return new ItemGunTrident();
		case 20:
			return new ItemGunToxic();
		case 21:
			return new ItemGunBat();
		case 22:
			return new ItemSuitBlackShell();
		case 23:
			return new ItemSuitGreenShell();
		case 24:
			return new ItemSuitRedShell();
		case 25:
			return new ItemSuitEvilCape();
		default:
			return null;	
		}
	}
}
